package com.javafactroy.kunlong.domain.login;

import cn.hutool.core.lang.UUID;
import org.springframework.stereotype.Service;

@Service
public class LoginService {

    public LoginRespDto login(LoginDto loginDto){
        LoginRespDto resp= new LoginRespDto();
        resp.getData().setToken(UUID.fastUUID().toString(true));

        resp.getData().setExpiresIn(14400l);
        return resp;
    }

    public GetInfoResp getInfo(){
        return new GetInfoResp();
    }
    // "permissions": [
    //        "*:*:*"
    //    ],
    //    "roles": [
    //        "admin"
    //    ],
}
